package com.servicesDirectory.action.government;

import com.opensymphony.xwork2.ActionSupport;
import com.servicesDirectory.bo.government.BaseGovernmentBOImpl;
import com.servicesDirectory.common.vo.BaseGovernmentVO;
import java.util.List;

public class GovernmentAction extends ActionSupport {

    private static final long serialVersionUID = 1L;
    public List<BaseGovernmentVO> governments;
    public BaseGovernmentVO government;
    private String filter = "";
    private int govId;
    private boolean checkInclude ;

    public String execute() {
        return SUCCESS;
    }

    @Override
    public void validate() {
    }

    public String listGovOfficeRegion() {
        BaseGovernmentBOImpl bo = new BaseGovernmentBOImpl();
        this.governments = bo.listGovOfficeRegion(filter, checkInclude);
        return SUCCESS;
    }

    public String detailGovOfficeRegion() {
        BaseGovernmentBOImpl bo = new BaseGovernmentBOImpl();
        this.government = bo.detailGovOfficeRegion(govId);
        return SUCCESS;
    }

    public int getGovId() {
        return govId;
    }

    public void setGovId(int govId) {
        this.govId = govId;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public String getFilter() {
        return filter;
    }

    public boolean getCheckInclude() {
        return checkInclude;
    }

    public void setCheckInclude(boolean checkInclude) {
        this.checkInclude = checkInclude;
    }
}
